import React from 'react'
import {
  Route,
} from 'react-router-dom'

import Home from '../views/home/index'
import TopicList from '../views/topic/topic-list'
import TopicCreate from '../views/topic/topic-create'
import TopicDetail from '../views/topic/topic-detail'

export default () => [
  <Route path="/" exact component={Home} key="home" />,
  <Route path="/topic" component={TopicList} key="topic-list" />,
  <Route path="/detail/:id" component={TopicDetail} key="topic-detail" />,
  <Route path="/create" component={TopicCreate} key="topic-create" />,
]
